Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

218
Visualizações
Facing issue while implementing € in "vue-d3-charts"

We are facing issue while implementing "€" symbol for currency, for "$" it works fine. Code snippet: Working fine with below code:

import { D3BarChart } from 'vue-d3-charts';

export default {
    name: "D3Chart",
    components: {
        D3BarChart,
    },
    props: {
      aemdata: {
        type: Object,
        required: true,
      },
      billingdata: {
        type: Object,
        required: true,
      },
    },
     data() {

    return {
      topUpColor : '#D3D3D3',
      deductionColor : '#696969',
      
      chart_config: {
        key: 'monthYear',
        values: ['topUp', 'deduction'],
        axis: { 
          yTicks: 10,
          yFormat: '$',
        },
        color: {
          keys: {
            'topUp': '#D3D3D3',
            'deduction': '#696969',
          },
        },
      },
    };
  },
}

Working screenshot: enter image description here

But when we are using below code:

import { D3BarChart } from 'vue-d3-charts';

export default {
    name: "D3Chart",
    components: {
        D3BarChart,
    },
    props: {
      aemdata: {
        type: Object,
        required: true,
      },
      billingdata: {
        type: Object,
        required: true,
      },
    },
     data() {

    return {
      topUpColor : '#D3D3D3',
      deductionColor : '#696969',
      
      chart_config: {
        key: 'monthYear',
        values: ['topUp', 'deduction'],
        axis: { 
          yTicks: 10,
          yFormat: '€',
        },
        color: {
          keys: {
            'topUp': '#D3D3D3',
            'deduction': '#696969',
          },
        },
      },
    };
  },
}

It is throwing Below error

"An error occurred while showing the error page Unfortunately an error occurred and while showing the error page another error occurred

Error details: TypeError: this.chart.destroyChart is not a function

Go back to home"

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda